package cn.edu.scau.cmi.huangzhiyuan.domain;

import cn.edu.scau.cmi.huangzhiyuan.interProgramming.one.Person;

public class Teacher implements Person{

	private static Teacher teacher = null;
	
	// 构造方法私有化
	private Teacher () {
	}
	
	// 单例模式获取实例
	public static Teacher getInstance() {
		
		if(teacher == null) {
			teacher = new Teacher();
		}

		return teacher;
	}
	
	public String introduceSelf() {
		return "I am a teacher.";
	}
	
}
